package com.example.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.chat.beans.Record;
import com.example.chat.result.RecordingResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecordMapper extends BaseMapper<Record> {
    RecordingResult selectByIds(String ids);

    Record selectByResourceIdAndSid(@Param("resourceId") String resourceId,
                                    @Param("sid") String sid);

    List<Record> selectAllRecord();

    int selectTimesByAdminId(@Param("startTime") long startTime,
                             @Param("endTime") long endTime,
                             @Param("adminId")Integer adminId);
}
